<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <title>Hello</title>
</head>
<body>
赋值：<span th:text="${user.usrName}">usrName</span><br>
拼接1：<span th:text="'Hello '+${user.usrName}+'!'">Hello usrName</span><br>
拼接2：<span th:text="|Hello ${user.usrName}! |">Hello usrName</span>
<div th:inline="text">
    <p>内联：Hello,[[${user.usrName}]]</p>
</div>
</body>
<script th:inline="javascript">
    //var msg='Hello'+[[${user.usrName}]]+'!';
</script>
</html>